Skip to main content

newTool

Type

message

Summary

Sent to the caller of choose when a different tool is chosen.

Syntax

newTool <pToolName>

Description

Sent when the choose command is used to change the current tool.

The newTool message is sent to the object owning the script that executed the choose command.

tip

To detect when the user changes tool using the Tools palette in the IDE, handle the message in a frontscript.

Parameters

NameTypeDescription

pToolName

The name of the tool that has just been chosen.

Examples

on newTool pToolName
if pToolName is "Browse" then show stack "Editing Tools"
else hide stack "Editing Tools"
end newTool

command: choose

function: tool

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?